import type { AliOssProviderValue } from 'ym-design';

export enum EnCourseWareGroup {
  'sChoiceQue' = '100', // 单选题
  'mChoiceQue' = '200', //多选题
  'judgeQue' = '300', //判断题
  'courseWarePack' = '400', //课件包
  'planTemplate' = '500', //计划模板
  'testPaper' = '600', //试卷
  'videoCourseWare' = '700', //视频课件
  'graphicCourseWare' = '800', //图文课件
  'pdfCourseWare' = '900', //pdf课件
}
export enum EnResourceNameGroup {
  '单选题' = 100,
  '多选题' = 200,
  '判断题' = 300,
  '课件包' = 400,
  '计划模板' = 500,
  '试卷' = 600,
  '视频课件' = 700,
  '图文课件' = 800,
  'pdf课件' = 900,
}

export const APIBOSSPREFIX = '/safe/api/platform/';
export const APIPCPREFIX = '/safe/api/';
export const OSSDIR = 'safeEdu';
export const APISAFEINDEX = '/unicron/ent/safety/';
export const GATEWAY = '/boss-gateway/';
export const APIZP = '/boss-gateway/api/zp/';
export const APIUNICRONZP = '/unicron/zp/';
export const APIUNICRON = '/unicron/';

export enum pageOpeTypeEnum {
  'add' = 'add',
  'edit' = 'edit',
  'detail' = 'detail',
}

export const YmSafeEduAliOssConfig: AliOssProviderValue = {
  // yourRegion填写Bucket（存储空间）所在地域。以华东1（杭州）为例，Region填写为oss-cn-hangzhou。
  region: 'oss-cn-hangzhou',
  // 从STS服务获取的临时访问密钥（AccessKey ID和AccessKey Secret）。
  accessKeyId: 'o6jf22DofRcUAUgz',
  accessKeySecret: 'CQgxlwx1yJOnNOrTokcakAKdB27dSF',
  // 从STS服务获取的安全令牌（SecurityToken）。
  // stsToken: "yourSecurityToken",
  // 填写Bucket名称，例如examplebucket。
  bucket: 'logibeat-test',
  client: 'Boss',
  system: 'Web',
  busPath: OSSDIR,
};
export enum WordEnum {
  A,
  B,
  C,
  D,
  E,
  F,
  G,
  H,
  I,
  J,
  K,
  L,
  M,
  N,
  O,
  P,
  Q,
}

export const EXAM_QUES_TITLE_MAX_LEN = 200;
export const EXAM_QUES_OPTION_MAX_LEN = 200;

export const MICROTOKENKEY = 'safeEduMicroToken'; //微应用嵌套 tokenKey
export const IFRAMETOKENKEY = 'safeEduIframeToken'; //iframe嵌套 tokenKey
export const BASETOKENFROMSBT = 'baseTokenFromSbt'; // sbt项目 authLogin 返回的token, 用于调用一些基础数据接口(主应用传过来，独立应用登录)
export const BASEAUTHTOKENFROMSBT = 'baseAuthTokenFromSbt'; // sbt项目 authLogin 返回的authToken, 用于调用一些基础数据接口(主应用传过来，独立应用登录)

export const APPTOKENKEY = 'safeEduToken'; //  独立应用tokenKey
export const ACOUNTAPIPREFIX = '/account'; // api prefix
export const SYSTEMCODE = 'logistics_cloud'; // api 参数

export const STUDYOBJECTOPTIONS = [
  { label: '企业法人', value: 1000 },
  { label: '安全员', value: 1002 },
  { label: '车队长', value: 1001 },
  { label: '司机', value: 1004 },
  { label: '环卫工人', value: 1006 },
  { label: '组长', value: 1005 },
];
export const ENTSTUDYOBJECTOPTIONS = [
  { label: '企业法人', value: 1000 },
  { label: '安全员', value: 1002 },
  { label: '车队长', value: 1001 },
  { label: '司机', value: 1004 },
];
export enum StudyObjectEnum {
  '企业法人' = 1000,
  '安全员' = 1002,
  '车队长' = 1001,
  '司机' = 1004,
  '环卫工人' = 1006,
  '组长' = 1005,
}

export const DATEFORMAT = 'YYYY-MM-DD';
export const DATETIMEFORMAT = 'YYYY-MM-DD HH:mm:ss';

export enum PlateColorGroup {
  '黄色' = 1,
  '蓝色' = 2,
  '绿色' = 3,
  '黄绿色' = 4,
  '黑色' = 5,
  '白色' = 6,
  '农黄色' = 7,
  '农绿色' = 8,
  '渐变绿' = 9,
  '其他' = 10,
}
